#!/usr/bin/python3
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t -*-

import elemlib
from fm_util import InfoPrinter


class FmUsrCleaner:

    def __init__(self):
        self.infoPrinter = InfoPrinter()

    def clean(self, bPretend):
        with self.infoPrinter.printInfoAndIndent(">> Cleaning cached elements of mine..."):
            with elemlib.Library(system_library_or_user_library=False) as usrLib:
                usrLib.clean()
